package com.ruoyi.spicfz.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 个人主信息对象 spicfz_parent
 * 
 * @author ruoyi
 * @date 2021-08-28
 */
public class Parent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 年龄 */
    @Excel(name = "年龄")
    private Integer age;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birtday;

    /** 家庭地址 */
    @Excel(name = "家庭地址")
    private String address;

    /** 证件类型 */
    @Excel(name = "证件类型")
    private String identifytype;

    /** 证件号码 */
    @Excel(name = "证件号码")
    private String identitynumber;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phonenumber;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 网址 */
    @Excel(name = "网址")
    private String website;

    /** 工作年限 */
    @Excel(name = "工作年限")
    private Integer workyears;

    /** 入职日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入职日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date entrydate;

    /** 工资 */
    @Excel(name = "工资")
    private BigDecimal salary;

    /** 奖金 */
    @Excel(name = "奖金")
    private BigDecimal bonus;

    /** 信用卡号 */
    @Excel(name = "信用卡号")
    private String creditcard;

    /** 简介 */
    @Excel(name = "简介")
    private String introduction;

    /** 简历 */
    @Excel(name = "简历")
    private String resume;

    /** 证件路径 */
    @Excel(name = "证件路径")
    private String idnumpath;

    /** 头像路径 */
    @Excel(name = "头像路径")
    private String avatarpath;

    /** 状态（0正常 1异常） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=异常")
    private String status;

    /** 个人子信息信息 */
    private List<Child> childList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setAge(Integer age) 
    {
        this.age = age;
    }

    public Integer getAge() 
    {
        return age;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setBirtday(Date birtday) 
    {
        this.birtday = birtday;
    }

    public Date getBirtday() 
    {
        return birtday;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setIdentifytype(String identifytype) 
    {
        this.identifytype = identifytype;
    }

    public String getIdentifytype() 
    {
        return identifytype;
    }
    public void setIdentitynumber(String identitynumber) 
    {
        this.identitynumber = identitynumber;
    }

    public String getIdentitynumber() 
    {
        return identitynumber;
    }
    public void setPhonenumber(String phonenumber) 
    {
        this.phonenumber = phonenumber;
    }

    public String getPhonenumber() 
    {
        return phonenumber;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setWebsite(String website) 
    {
        this.website = website;
    }

    public String getWebsite() 
    {
        return website;
    }
    public void setWorkyears(Integer workyears) 
    {
        this.workyears = workyears;
    }

    public Integer getWorkyears() 
    {
        return workyears;
    }
    public void setEntrydate(Date entrydate) 
    {
        this.entrydate = entrydate;
    }

    public Date getEntrydate() 
    {
        return entrydate;
    }
    public void setSalary(BigDecimal salary) 
    {
        this.salary = salary;
    }

    public BigDecimal getSalary() 
    {
        return salary;
    }
    public void setBonus(BigDecimal bonus) 
    {
        this.bonus = bonus;
    }

    public BigDecimal getBonus() 
    {
        return bonus;
    }
    public void setCreditcard(String creditcard) 
    {
        this.creditcard = creditcard;
    }

    public String getCreditcard() 
    {
        return creditcard;
    }
    public void setIntroduction(String introduction) 
    {
        this.introduction = introduction;
    }

    public String getIntroduction() 
    {
        return introduction;
    }
    public void setResume(String resume) 
    {
        this.resume = resume;
    }

    public String getResume() 
    {
        return resume;
    }
    public void setIdnumpath(String idnumpath) 
    {
        this.idnumpath = idnumpath;
    }

    public String getIdnumpath() 
    {
        return idnumpath;
    }
    public void setAvatarpath(String avatarpath) 
    {
        this.avatarpath = avatarpath;
    }

    public String getAvatarpath() 
    {
        return avatarpath;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public List<Child> getChildList()
    {
        return childList;
    }

    public void setChildList(List<Child> childList)
    {
        this.childList = childList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("password", getPassword())
            .append("age", getAge())
            .append("sex", getSex())
            .append("birtday", getBirtday())
            .append("address", getAddress())
            .append("identifytype", getIdentifytype())
            .append("identitynumber", getIdentitynumber())
            .append("phonenumber", getPhonenumber())
            .append("email", getEmail())
            .append("website", getWebsite())
            .append("workyears", getWorkyears())
            .append("entrydate", getEntrydate())
            .append("salary", getSalary())
            .append("bonus", getBonus())
            .append("creditcard", getCreditcard())
            .append("introduction", getIntroduction())
            .append("resume", getResume())
            .append("idnumpath", getIdnumpath())
            .append("avatarpath", getAvatarpath())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("childList", getChildList())
            .toString();
    }
}
